package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 投资策略对象 inv_strategy
 * 
 * @author ruoyi
 * @date 2022-01-12
 */
public class InvStrategy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 策略名 */
    @Excel(name = "策略名")
    private String name;

    /** 策略当前净值 */
    @Excel(name = "策略当前净值")
    private BigDecimal currentWorth;

    /** 策略当前金额 */
    @Excel(name = "策略当前金额")
    private BigDecimal amount;

    /** 策略占总仓位 */
    @Excel(name = "策略占总仓位")
    private String proportion;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCurrentWorth(BigDecimal currentWorth) 
    {
        this.currentWorth = currentWorth;
    }

    public BigDecimal getCurrentWorth() 
    {
        return currentWorth;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setProportion(String proportion) 
    {
        this.proportion = proportion;
    }

    public String getProportion() 
    {
        return proportion;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("currentWorth", getCurrentWorth())
            .append("amount", getAmount())
            .append("remark", getRemark())
            .append("proportion", getProportion())
            .toString();
    }
}
